package com.wlz.principle.dip.scene;


import com.wlz.principle.dip.ICar;
import com.wlz.principle.dip.IDriver;

public class Client {
    public static void main(String[] args) {
        IDriver zhangSan = new Driver();
        ICar car = new BMW();
        //张三开奔驰车
        zhangSan.drive(car);
    }
}